package me.zhengjie.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;

/**
 * @description: some desc
 * @author: mfc
 * @date: 2024/12/31 18:22
 */
public interface MinioService {
    public void ensureBucketExists() throws Exception;
    public String uploadFile(MultipartFile file) throws Exception;

    public InputStream downloadFile(String objectName) throws Exception;
    public List<String> listObjects() throws Exception;

}
